<template>
	<view class="activityItem">
		<view class="activityImg">
			<image :src="$setImgUrl(dataItem.activityFile)" class="img" v-if="dataItem.activityFile"></image>
			<image src="@/static/common/activityImg.png" class="img" v-else></image>
		</view>
		<view class="activityItem-right">
			<view class="activityItem-title">{{dataItem.activityName}}</view>
			<!-- <view class="activityItem-text">{{dataItem}}</view> -->
			<view class="btnList">
				<view class="submitBtn" @click="$emit('click',1)">审核</view>
				<view class="submitBtn" @click="$emit('click',2)">签到</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "activityItem",
		props: {
			dataItem: {
				type: Object,
				default: () => {}
			}
		},
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss" scoped>
	.activityItem {
		border-bottom: 2rpx solid #F7F7F7;
		margin-bottom: 20rpx;
		padding: 20rpx;
		display: flex;
		background-color: #fff;
		align-items: center;
		border-radius: 8rpx;
		overflow: hidden;

		.activityImg {
			flex-shrink: 0;
			width: 80px;
			height: 80px;
			flex-shrink: 0;
			margin-right: 20px;

			.img {
				width: 100%;
				height: 100%;

			}
		}

		.activityItem-right {
			flex: 1;

			.activityItem-title {
				font-family: PingFang SC, PingFang SC;
				font-weight: 500;
				font-size: 32rpx;
				color: #000000;
				margin-bottom: 20px;
			}

			.activityItem-text {
				font-family: PingFang SC, PingFang SC;
				font-weight: 400;
				font-size: 24rpx;
				color: #979797;
			}

			.btnList {
				display: flex;
				align-items: center;
				justify-content: flex-end;

				.submitBtn {
					display: inline-block;
					padding: 10rpx 26rpx;
					background: #6FA9FF;
					border-radius: 8rpx;
					font-family: PingFang SC, PingFang SC;
					font-weight: 400;
					font-size: 28rpx;
					color: #FFFFFF;
					margin-left: 20rpx;

					&:first-child {
						margin-left: 0;
					}
				}
			}


		}
	}
</style>